package com.jsh.erp.datasource.mappers;

import com.jsh.erp.datasource.entities.DepotItem;
import com.jsh.erp.datasource.entities.MaterialExtend;
import com.jsh.erp.datasource.vo.MaterialExtendVo4List;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface MaterialExtendMapperEx {

    int batchDeleteMaterialExtendByIds(@Param("ids") String ids[]);

    List<MaterialExtendVo4List> getDetailList(
            @Param("materialId") String materialId);

    List<MaterialExtendVo4List> getDetailByMaterialId(
            @Param("materialArray") String[] materialArray);

    Long getMaxTimeByTenantAndTime(
            @Param("tenantId") String tenantId,
            @Param("lastTime") Long lastTime,
            @Param("syncNum") String syncNum);

    List<MaterialExtend> getListByMId(@Param("ids") String ids[]);

    int batchDeleteMaterialExtendByMIds(@Param("ids") String ids[]);

    int insertList(List<MaterialExtend> list);

    int updateList(List<MaterialExtend> list);

    int extendInsertList(@Param("list")List<MaterialExtend> list);

    String getInfoByBarCode(@Param("barCode") String barCode,@Param("name") String name);

    List<MaterialExtend> checkIsBarCodeExist(@Param("id") String id,@Param("barCode") String barCode,@Param("categoryId") String categoryId);
}
